package ca.etsmtl.log720.lab1;

import org.omg.PortableServer.POA;

public class InfractionImpl extends InfractionPOA {

	private int _id;
	private String _description;
	private int _niveau;
  	
  	private static int _lastId = 0;
	
	/* Constructeurs */
	
	public InfractionImpl(String description, int niveau) {

		_description = description;
		_niveau = niveau;
  		_id = _lastId++;
		
	}
	
	public String _toString() {
		return _id + ". " + _description + " (niveau " + _niveau + ")"; 
	}
	
	/* GETTERS */
	
	public int id() {
		return _id;
	}
	
	public String description() {
		return _description;
	}
	
	public int niveau() {
		return _niveau;
	}

}
